package com.xiaoming.project.core.util.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;
import java.util.Random;

public class PrintWordsJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("PrintWordsJob start at:" + LocalDateTime.now() + ", prints: Hello Job-" + new Random().nextInt(100));
    }
}
